<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('AdminUser/index')}">{:lang('TENANT_USER_INDEX')}员</a></li>
			<li><a href="{:url('AdminUser/add')}">{:lang('TENANT_USER_ADD')}管理员</a></li>
			<li class="active"><a>编辑{:lang('TENANT')}管理员</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminUser/editPost')}">
			<div class="form-group">
				<label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('USERNAME')}</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_login" name="user_login" value="{$user.user_login}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_pass" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('PASSWORD')}</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_pass" name="user_pass" value="" placeholder="******">
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_pass" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('TENANT')}管理员类型</label>
				<div class="col-md-6 col-sm-10">
					
					<if condition="$admin['tenant_id'] eq 0">
						<input type="radio"  id="input-tenant_type" name="tenant_type" value='1' {$user.tenant_type==1?'checked':''}>{:lang('TENANT_ADMIN_1')}<!--分管员没有权限添加管理员-->
					</if>
					<input type="radio"  id="input-tenant_type" name="tenant_type" value='2' {$user.tenant_type==2?'checked':''}>{:lang('TENANT_ADMIN_2')}
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('EMAIL')}</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="user_email" value="{$user.user_email}">
				</div>
			</div>
			
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$user.id}" />
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>